import { createRouter, createWebHistory } from 'vue-router'

const routes = [
    {
        //路由初始指向
        path: '/',
        redirect: 'login'
    },
    {
        //路由初始指向
        path: '/login',
        name: 'login',
        component: () => import('../views/login.vue'),
    },
    {
        //路由初始指向
        path: '/doc-manage',
        name: 'doc-manage',
        component: () => import('../views/doc-manage.vue'),
    },
    {
        //路由初始指向
        path: '/preview-pdf',
        name: 'preview-pdf',
        component: () => import('../views/pdf-preview.vue'),
    },
    {
        //路由初始指向
        path: '/preview-img',
        name: 'preview-img',
        component: () => import('../views/img-preview.vue'),
    },
    {
        //路由初始指向
        path: '/test',
        name: 'test',
        component: () => import('../views/test.vue'),
    },

]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router
